home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1996 November / macformat-043.iso / mac / Shareware Plus / Developers / OpenStack Rinaldi Collection / openstack-rinaldi-lib / SetFileFlag 1.2 (US) / SetFileFlag 1.2 (US).rsrc / HELP_5635 next >
Encoding:
Text File  |  1996-01-09  |  2.8 KB  |  66 lines

  1.  
  2.  
  3.                                            SetFileFlag 1.2
  4.  
  5.                                          by Frédéric RINALDI
  6.  
  7. DESCRIPTION
  8.   SetFileFlag is an XCMD allowing to change the value of the authorized Finder flags of a file.
  9.  
  10. SYNTAX
  11.       SetFileFlag <file path or name>,<flag name>[,<flag state>]
  12.                         [,"DontResolveAlias"]
  13.  
  14. PARAMETERS
  15.    <file path or name> can be a single name or whole pathname. If just a single name is supplied, the file is assumed to be in the same folder than the current stack.
  16.  
  17.    <flag name> must be one of the following string values (accepted System 7.0 values are enclosed in brackets) :
  18.             busy (hasCustomIcon), noCopy (isStationery), hasBundle,
  19.             System  (nameLocked), invisible (isInvisible)
  20.  
  21.    <flag state> is a boolean defining the desired state of the choosen flag. Default value is TRUE.
  22.  
  23.    "dontResolveAlias" allows to deal with an alias file itself (System 7.0 only) rather than with the file pointed by it.
  24.  
  25.    Using "!", "?" or "=" as first parameter will return an online help (resp. copyright, syntax and output).
  26.  
  27. ERRORS
  28.    If an error occurs, the XCMD will return in the Result :
  29.     "Error : Not a file"
  30.      "Error : Not a folder"
  31.      "Error : Alias file not supported"
  32.      "Error : Volume not found"
  33.      "Error : Bad Name"
  34.      "Error : File not found"
  35.      "Error : Folder not found"
  36.      "Error : File is busy"
  37.      "Error : I/O Error"
  38.      "Error : Folder is full"
  39.      "Error : Volume is locked"
  40.      "Error : No resource fork"
  41.      "Error : Duplicate file/folder name"
  42.      "Error : Moving whole volume not allowed"
  43.      "Error : Not an AppleShare volume"
  44.      "Error : AppleShare insufficient privileges"
  45.      "Error : Missing or empty parameter(s)"
  46.      "Error : Bad param #X"
  47.      "Error : Bad or unauthorized flag name"
  48.  
  49. HISTORY
  50. 1.2                                                                                         12/25/91
  51. • Fixed alias file bug under System 7.0.1
  52.                                                                                          
  53. 1.1                                                                                         08/04/91
  54. • Added support for System 7.0 alias files
  55. • General enhancement of the code
  56. • Added "DontResolveAlias" parameter
  57. • Added "=" param for online help
  58. --------------------------------------------------------------------
  59.    All externals included in this stack are FreeWare and may be used in non-commercial software provided the following notice is visibly present :
  60.  
  61.                SetFileFlag XCMD, © Frederic Rinaldi, 1989…1993.
  62.  
  63.    Free for non-commercial use. Use in commercial software subjected to prior acknowledgement and licensing from the author, reachable at the following network addresses:
  64.  
  65. AppleLink: RINALDI1   CalvaCom : FR10    Compuserve : 71170,2111
  66.                Internet : RINALDI1@APPLELINK@APPLE.COM